package com.yl.auth.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yl.auth.entity.LaorenTijian;
import com.yl.auth.mapper.LaorenTijianMapper;
import com.yl.auth.model.vo.LaoTiVo;
import com.yl.auth.model.vo.LaorenVo;
import com.yl.auth.service.LaorenTijianService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yl
 * @since 2023-06-19
 */
@Service
public class LaorenTijianServiceImpl extends ServiceImpl<LaorenTijianMapper, LaorenTijian> implements LaorenTijianService {
    @Resource
    private LaorenTijianMapper laorenTijianMapper;

    @Override
    public Page<LaoTiVo> pages(Long id, Page<LaoTiVo> page1) {
        return laorenTijianMapper.pages(id,page1);
    }


    @Override
    public LaoTiVo getTijianLaoren(Integer id) {
        return laorenTijianMapper.getTijianLaoren(id);
    }

    @Override
    public LaoTiVo getLaoTi(Long id) {
        return laorenTijianMapper.getLaoTi(id);
    }
}
